package weibo4andriod.a;

import java.io.PrintStream;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.URLEncoder;
import java.security.AccessControlException;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

public final class c
  implements Serializable
{
  private static final boolean a = weibo4andriod.a.r();
  private static boolean m = false;
  private String b = null;
  private int c = weibo4andriod.a.k();
  private int d = 1000 * weibo4andriod.a.l();
  private String e = weibo4andriod.a.m();
  private String f = weibo4andriod.a.n();
  private String g = weibo4andriod.a.e();
  private int h = weibo4andriod.a.h();
  private String i = weibo4andriod.a.f();
  private String j = weibo4andriod.a.g();
  private int k = weibo4andriod.a.i();
  private int l = weibo4andriod.a.j();
  private Map n = new HashMap();
  private e o = null;
  private String p = weibo4andriod.a.c() + "api.t.sina.com.cn/oauth/request_token";
  private String q = weibo4andriod.a.c() + "api.t.sina.com.cn/oauth/authorize";
  private String r = weibo4andriod.a.c() + "api.t.sina.com.cn/oauth/authenticate";
  private String s = weibo4andriod.a.c() + "api.t.sina.com.cn/oauth/access_token";
  private f t = null;
  private String u = null;

  static
  {
    try
    {
      String str = System.getProperty("java.specification.version");
      if (str != null)
      {
        if (1.5D <= Double.parseDouble(str))
          break label38;
        i1 = 1;
        m = i1;
      }
      label37: return;
      label38: int i1 = 0;
    }
    catch (AccessControlException localAccessControlException)
    {
      m = true;
      break label37:
    }
  }

  public c()
  {
    b("User-Agent", weibo4andriod.a.o());
    String str1 = weibo4andriod.a.p();
    String str2 = weibo4andriod.a.q();
    if ((str1 != null) && (str2 != null) && (str1.length() != 0) && (str2.length() != 0))
      this.o = new e(str1, str2);
    b("Accept-Encoding", "gzip");
  }

  private static String a(g[] paramArrayOfg)
  {
    StringBuffer localStringBuffer = new StringBuffer();
    int i1 = 0;
    while (true)
    {
      if (i1 >= paramArrayOfg.length)
        return localStringBuffer.toString();
      if (i1 != 0)
        localStringBuffer.append("&");
      try
      {
        localStringBuffer.append(URLEncoder.encode(paramArrayOfg[i1].a, "UTF-8")).append("=").append(URLEncoder.encode(paramArrayOfg[i1].b, "UTF-8"));
        label67: ++i1;
      }
      catch (UnsupportedEncodingException localUnsupportedEncodingException)
      {
        break label67:
      }
    }
  }

  // ERROR //
  private i a(String paramString1, g[] paramArrayOfg, String paramString2)
  {
    // Byte code:
    //   0: iconst_1
    //   1: aload_0
    //   2: getfield 70	weibo4andriod/a/c:c	I
    //   5: iadd
    //   6: istore 4
    //   8: aconst_null
    //   9: astore 5
    //   11: iconst_0
    //   12: istore 6
    //   14: iload 6
    //   16: iload 4
    //   18: if_icmplt +10 -> 28
    //   21: aload 5
    //   23: astore 27
    //   25: aload 27
    //   27: areturn
    //   28: aload_0
    //   29: getfield 87	weibo4andriod/a/c:g	Ljava/lang/String;
    //   32: ifnull +649 -> 681
    //   35: aload_0
    //   36: getfield 87	weibo4andriod/a/c:g	Ljava/lang/String;
    //   39: ldc 215
    //   41: invokevirtual 219	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   44: ifne +637 -> 681
    //   47: aload_0
    //   48: getfield 95	weibo4andriod/a/c:i	Ljava/lang/String;
    //   51: ifnull +70 -> 121
    //   54: aload_0
    //   55: getfield 95	weibo4andriod/a/c:i	Ljava/lang/String;
    //   58: ldc 215
    //   60: invokevirtual 219	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   63: ifne +58 -> 121
    //   66: new 116	java/lang/StringBuilder
    //   69: dup
    //   70: ldc 221
    //   72: invokespecial 127	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   75: aload_0
    //   76: getfield 95	weibo4andriod/a/c:i	Ljava/lang/String;
    //   79: invokevirtual 133	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   82: invokevirtual 136	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   85: invokestatic 223	weibo4andriod/a/c:h	(Ljava/lang/String;)V
    //   88: new 116	java/lang/StringBuilder
    //   91: dup
    //   92: ldc 225
    //   94: invokespecial 127	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   97: aload_0
    //   98: getfield 99	weibo4andriod/a/c:j	Ljava/lang/String;
    //   101: invokevirtual 133	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   104: invokevirtual 136	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   107: invokestatic 223	weibo4andriod/a/c:h	(Ljava/lang/String;)V
    //   110: new 227	weibo4andriod/a/d
    //   113: dup
    //   114: aload_0
    //   115: invokespecial 230	weibo4andriod/a/d:<init>	(Lweibo4andriod/a/c;)V
    //   118: invokestatic 236	java/net/Authenticator:setDefault	(Ljava/net/Authenticator;)V
    //   121: new 238	java/net/Proxy
    //   124: dup
    //   125: getstatic 244	java/net/Proxy$Type:HTTP	Ljava/net/Proxy$Type;
    //   128: aload_0
    //   129: getfield 87	weibo4andriod/a/c:g	Ljava/lang/String;
    //   132: aload_0
    //   133: getfield 91	weibo4andriod/a/c:h	I
    //   136: invokestatic 250	java/net/InetSocketAddress:createUnresolved	(Ljava/lang/String;I)Ljava/net/InetSocketAddress;
    //   139: invokespecial 253	java/net/Proxy:<init>	(Ljava/net/Proxy$Type;Ljava/net/SocketAddress;)V
    //   142: astore 35
    //   144: getstatic 44	weibo4andriod/a/c:a	Z
    //   147: ifeq +44 -> 191
    //   150: new 116	java/lang/StringBuilder
    //   153: dup
    //   154: ldc 255
    //   156: invokespecial 127	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   159: aload_0
    //   160: getfield 87	weibo4andriod/a/c:g	Ljava/lang/String;
    //   163: invokevirtual 133	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   166: ldc_w 257
    //   169: invokevirtual 133	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   172: aload_0
    //   173: getfield 91	weibo4andriod/a/c:h	I
    //   176: invokevirtual 260	java/lang/StringBuilder:append	(I)Ljava/lang/StringBuilder;
    //   179: ldc_w 262
    //   182: invokevirtual 133	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   185: invokevirtual 136	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   188: invokestatic 223	weibo4andriod/a/c:h	(Ljava/lang/String;)V
    //   191: new 264	java/net/URL
    //   194: dup
    //   195: aload_1
    //   196: invokespecial 265	java/net/URL:<init>	(Ljava/lang/String;)V
    //   199: aload 35
    //   201: invokevirtual 269	java/net/URL:openConnection	(Ljava/net/Proxy;)Ljava/net/URLConnection;
    //   204: checkcast 271	java/net/HttpURLConnection
    //   207: astore 19
    //   209: aload_0
    //   210: getfield 103	weibo4andriod/a/c:k	I
    //   213: ifle +18 -> 231
    //   216: getstatic 46	weibo4andriod/a/c:m	Z
    //   219: ifne +12 -> 231
    //   222: aload 19
    //   224: aload_0
    //   225: getfield 103	weibo4andriod/a/c:k	I
    //   228: invokevirtual 275	java/net/HttpURLConnection:setConnectTimeout	(I)V
    //   231: aload_0
    //   232: getfield 107	weibo4andriod/a/c:l	I
    //   235: ifle +18 -> 253
    //   238: getstatic 46	weibo4andriod/a/c:m	Z
    //   241: ifne +12 -> 253
    //   244: aload 19
    //   246: aload_0
    //   247: getfield 107	weibo4andriod/a/c:l	I
    //   250: invokevirtual 278	java/net/HttpURLConnection:setReadTimeout	(I)V
    //   253: aload 19
    //   255: iconst_1
    //   256: invokevirtual 282	java/net/HttpURLConnection:setDoInput	(Z)V
    //   259: aload_0
    //   260: aload_1
    //   261: aload_2
    //   262: aload 19
    //   264: iconst_1
    //   265: aload_3
    //   266: invokespecial 285	weibo4andriod/a/c:a	(Ljava/lang/String;[Lweibo4andriod/a/g;Ljava/net/HttpURLConnection;ZLjava/lang/String;)V
    //   269: aload_2
    //   270: ifnonnull +13 -> 283
    //   273: ldc_w 287
    //   276: aload_3
    //   277: invokevirtual 219	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   280: ifeq +420 -> 700
    //   283: aload 19
    //   285: ldc_w 287
    //   288: invokevirtual 290	java/net/HttpURLConnection:setRequestMethod	(Ljava/lang/String;)V
    //   291: aload 19
    //   293: ldc_w 292
    //   296: ldc_w 294
    //   299: invokevirtual 297	java/net/HttpURLConnection:setRequestProperty	(Ljava/lang/String;Ljava/lang/String;)V
    //   302: aload 19
    //   304: iconst_1
    //   305: invokevirtual 300	java/net/HttpURLConnection:setDoOutput	(Z)V
    //   308: ldc 215
    //   310: astore 20
    //   312: aload_2
    //   313: ifnull +9 -> 322
    //   316: aload_2
    //   317: invokestatic 302	weibo4andriod/a/c:a	([Lweibo4andriod/a/g;)Ljava/lang/String;
    //   320: astore 20
    //   322: ldc_w 304
    //   325: aload 20
    //   327: invokestatic 306	weibo4andriod/a/c:c	(Ljava/lang/String;Ljava/lang/String;)V
    //   330: aload 20
    //   332: ldc 197
    //   334: invokevirtual 310	java/lang/String:getBytes	(Ljava/lang/String;)[B
    //   337: astore 21
    //   339: aload 19
    //   341: ldc_w 312
    //   344: aload 21
    //   346: arraylength
    //   347: invokestatic 317	java/lang/Integer:toString	(I)Ljava/lang/String;
    //   350: invokevirtual 297	java/net/HttpURLConnection:setRequestProperty	(Ljava/lang/String;Ljava/lang/String;)V
    //   353: aload 19
    //   355: invokevirtual 321	java/net/HttpURLConnection:getOutputStream	()Ljava/io/OutputStream;
    //   358: astore 22
    //   360: aload 22
    //   362: astore 8
    //   364: aload 8
    //   366: aload 21
    //   368: invokevirtual 327	java/io/OutputStream:write	([B)V
    //   371: aload 8
    //   373: invokevirtual 330	java/io/OutputStream:flush	()V
    //   376: aload 8
    //   378: invokevirtual 333	java/io/OutputStream:close	()V
    //   381: aload 8
    //   383: astore 23
    //   385: new 335	weibo4andriod/a/i
    //   388: dup
    //   389: aload 19
    //   391: invokespecial 338	weibo4andriod/a/i:<init>	(Ljava/net/HttpURLConnection;)V
    //   394: astore 24
    //   396: aload 19
    //   398: invokevirtual 341	java/net/HttpURLConnection:getResponseCode	()I
    //   401: istore 25
    //   403: getstatic 44	weibo4andriod/a/c:a	Z
    //   406: ifeq +40 -> 446
    //   409: ldc_w 343
    //   412: invokestatic 223	weibo4andriod/a/c:h	(Ljava/lang/String;)V
    //   415: aload 19
    //   417: invokevirtual 347	java/net/HttpURLConnection:getHeaderFields	()Ljava/util/Map;
    //   420: astore 30
    //   422: aload 30
    //   424: invokeinterface 353 1 0
    //   429: invokeinterface 359 1 0
    //   434: astore 31
    //   436: aload 31
    //   438: invokeinterface 364 1 0
    //   443: ifne +295 -> 738
    //   446: iload 25
    //   448: sipush 200
    //   451: if_icmpeq +393 -> 844
    //   454: iload 25
    //   456: sipush 500
    //   459: if_icmplt +12 -> 471
    //   462: iload 6
    //   464: aload_0
    //   465: getfield 70	weibo4andriod/a/c:c	I
    //   468: if_icmpne +397 -> 865
    //   471: aconst_null
    //   472: astore 28
    //   474: iload 25
    //   476: lookupswitch	default:+571->1047, 304:+84->560, 400:+578->1054, 401:+586->1062, 403:+594->1070, 404:+602->1078, 406:+610->1086, 500:+618->1094, 502:+626->1102, 503:+360->836
    //   561: aconst_null
    //   562: fdiv
    //   563: dup
    //   564: new 116	java/lang/StringBuilder
    //   567: dup
    //   568: new 116	java/lang/StringBuilder
    //   571: dup
    //   572: iload 25
    //   574: invokestatic 368	java/lang/String:valueOf	(I)Ljava/lang/String;
    //   577: invokespecial 127	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   580: ldc_w 257
    //   583: invokevirtual 133	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   586: aload 28
    //   588: invokevirtual 133	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   591: invokevirtual 136	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   594: invokestatic 124	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   597: invokespecial 127	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   600: ldc_w 370
    //   603: invokevirtual 133	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   606: aload 24
    //   608: invokevirtual 372	weibo4andriod/a/i:a	()Ljava/lang/String;
    //   611: invokevirtual 133	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   614: invokevirtual 136	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   617: iload 25
    //   619: invokespecial 375	weibo4andriod/g:<init>	(Ljava/lang/String;I)V
    //   622: athrow
    //   623: astore 7
    //   625: aload 23
    //   627: astore 8
    //   629: aload 24
    //   631: astore 10
    //   633: iload 25
    //   635: istore 9
    //   637: aload 8
    //   639: invokevirtual 333	java/io/OutputStream:close	()V
    //   642: aload 7
    //   644: athrow
    //   645: astore 12
    //   647: iload 9
    //   649: istore 13
    //   651: aload 10
    //   653: astore 14
    //   655: iload 6
    //   657: aload_0
    //   658: getfield 70	weibo4andriod/a/c:c	I
    //   661: if_icmpne +379 -> 1040
    //   664: new 366	weibo4andriod/g
    //   667: dup
    //   668: aload 12
    //   670: invokevirtual 378	java/io/IOException:getMessage	()Ljava/lang/String;
    //   673: aload 12
    //   675: iload 13
    //   677: invokespecial 381	weibo4andriod/g:<init>	(Ljava/lang/String;Ljava/lang/Exception;I)V
    //   680: athrow
    //   681: new 264	java/net/URL
    //   684: dup
    //   685: aload_1
    //   686: invokespecial 265	java/net/URL:<init>	(Ljava/lang/String;)V
    //   689: invokevirtual 384	java/net/URL:openConnection	()Ljava/net/URLConnection;
    //   692: checkcast 271	java/net/HttpURLConnection
    //   695: astore 19
    //   697: goto -488 -> 209
    //   700: ldc_w 386
    //   703: aload_3
    //   704: invokevirtual 219	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   707: ifeq +17 -> 724
    //   710: aload 19
    //   712: ldc_w 386
    //   715: invokevirtual 290	java/net/HttpURLConnection:setRequestMethod	(Ljava/lang/String;)V
    //   718: aconst_null
    //   719: astore 23
    //   721: goto -336 -> 385
    //   724: aload 19
    //   726: ldc_w 388
    //   729: invokevirtual 290	java/net/HttpURLConnection:setRequestMethod	(Ljava/lang/String;)V
    //   732: aconst_null
    //   733: astore 23
    //   735: goto -350 -> 385
    //   738: aload 31
    //   740: invokeinterface 392 1 0
    //   745: checkcast 120	java/lang/String
    //   748: astore 32
    //   750: aload 30
    //   752: aload 32
    //   754: invokeinterface 396 2 0
    //   759: checkcast 398	java/util/List
    //   762: invokeinterface 399 1 0
    //   767: astore 33
    //   769: aload 33
    //   771: invokeinterface 364 1 0
    //   776: ifeq -340 -> 436
    //   779: aload 33
    //   781: invokeinterface 392 1 0
    //   786: checkcast 120	java/lang/String
    //   789: astore 34
    //   791: aload 32
    //   793: ifnull +35 -> 828
    //   796: new 116	java/lang/StringBuilder
    //   799: dup
    //   800: aload 32
    //   802: invokestatic 124	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   805: invokespecial 127	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   808: ldc_w 401
    //   811: invokevirtual 133	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   814: aload 34
    //   816: invokevirtual 133	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   819: invokevirtual 136	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   822: invokestatic 223	weibo4andriod/a/c:h	(Ljava/lang/String;)V
    //   825: goto -56 -> 769
    //   828: aload 34
    //   830: invokestatic 223	weibo4andriod/a/c:h	(Ljava/lang/String;)V
    //   833: goto -64 -> 769
    //   836: ldc_w 403
    //   839: astore 28
    //   841: goto -281 -> 560
    //   844: aload 23
    //   846: invokevirtual 333	java/io/OutputStream:close	()V
    //   849: aload 24
    //   851: astore 27
    //   853: goto -828 -> 25
    //   856: astore 26
    //   858: aload 24
    //   860: astore 27
    //   862: goto -837 -> 25
    //   865: aload 23
    //   867: invokevirtual 333	java/io/OutputStream:close	()V
    //   870: aload 24
    //   872: astore 15
    //   874: getstatic 44	weibo4andriod/a/c:a	Z
    //   877: ifeq +14 -> 891
    //   880: aload 15
    //   882: ifnull +9 -> 891
    //   885: aload 15
    //   887: invokevirtual 372	weibo4andriod/a/i:a	()Ljava/lang/String;
    //   890: pop
    //   891: new 116	java/lang/StringBuilder
    //   894: dup
    //   895: ldc_w 405
    //   898: invokespecial 127	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   901: aload_0
    //   902: getfield 74	weibo4andriod/a/c:d	I
    //   905: invokevirtual 260	java/lang/StringBuilder:append	(I)Ljava/lang/StringBuilder;
    //   908: ldc_w 407
    //   911: invokevirtual 133	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   914: invokevirtual 136	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   917: invokestatic 223	weibo4andriod/a/c:h	(Ljava/lang/String;)V
    //   920: aload_0
    //   921: getfield 74	weibo4andriod/a/c:d	I
    //   924: i2l
    //   925: invokestatic 413	java/lang/Thread:sleep	(J)V
    //   928: iload 6
    //   930: iconst_1
    //   931: iadd
    //   932: istore 17
    //   934: aload 15
    //   936: astore 5
    //   938: iload 17
    //   940: istore 6
    //   942: goto -928 -> 14
    //   945: astore 29
    //   947: aload 24
    //   949: astore 15
    //   951: goto -77 -> 874
    //   954: astore 11
    //   956: goto -314 -> 642
    //   959: astore 16
    //   961: goto -33 -> 928
    //   964: astore 12
    //   966: iload 25
    //   968: istore 13
    //   970: aload 24
    //   972: astore 14
    //   974: goto -319 -> 655
    //   977: astore 7
    //   979: aconst_null
    //   980: astore 8
    //   982: bipush 255
    //   984: istore 9
    //   986: aload 5
    //   988: astore 10
    //   990: goto -353 -> 637
    //   993: astore 7
    //   995: bipush 255
    //   997: istore 9
    //   999: aload 5
    //   1001: astore 10
    //   1003: goto -366 -> 637
    //   1006: astore 7
    //   1008: aload 23
    //   1010: astore 8
    //   1012: aload 5
    //   1014: astore 10
    //   1016: bipush 255
    //   1018: istore 9
    //   1020: goto -383 -> 637
    //   1023: astore 7
    //   1025: aload 23
    //   1027: astore 8
    //   1029: aload 24
    //   1031: astore 10
    //   1033: bipush 255
    //   1035: istore 9
    //   1037: goto -400 -> 637
    //   1040: aload 14
    //   1042: astore 15
    //   1044: goto -170 -> 874
    //   1047: ldc 215
    //   1049: astore 28
    //   1051: goto -491 -> 560
    //   1054: ldc_w 415
    //   1057: astore 28
    //   1059: goto -499 -> 560
    //   1062: ldc_w 417
    //   1065: astore 28
    //   1067: goto -507 -> 560
    //   1070: ldc_w 419
    //   1073: astore 28
    //   1075: goto -515 -> 560
    //   1078: ldc_w 421
    //   1081: astore 28
    //   1083: goto -523 -> 560
    //   1086: ldc_w 423
    //   1089: astore 28
    //   1091: goto -531 -> 560
    //   1094: ldc_w 425
    //   1097: astore 28
    //   1099: goto -539 -> 560
    //   1102: ldc_w 427
    //   1105: astore 28
    //   1107: goto -547 -> 560
    //
    // Exception table:
    //   from	to	target	type
    //   403	623	623	finally
    //   738	841	623	finally
    //   637	642	645	java/io/IOException
    //   642	645	645	java/io/IOException
    //   844	849	856	java/lang/Exception
    //   865	870	945	java/lang/Exception
    //   637	642	954	java/lang/Exception
    //   874	928	959	java/lang/InterruptedException
    //   844	849	964	java/io/IOException
    //   865	870	964	java/io/IOException
    //   28	360	977	finally
    //   681	732	977	finally
    //   364	381	993	finally
    //   385	396	1006	finally
    //   396	403	1023	finally
  }

  private void a(String paramString1, g[] paramArrayOfg, HttpURLConnection paramHttpURLConnection, boolean paramBoolean, String paramString2)
  {
    h("Request: ");
    c(paramString2 + " ", paramString1);
    String str1;
    Iterator localIterator;
    if (this.o != null)
    {
      str1 = this.o.a(paramString2, paramString1, paramArrayOfg, this.t);
      paramHttpURLConnection.addRequestProperty("Authorization", str1);
      h("Authorization: " + str1);
      localIterator = this.n.keySet().iterator();
    }
    while (true)
    {
      if (!(localIterator.hasNext()))
      {
        return;
        if (this.b != null)
          str1 = this.b;
        throw new IllegalStateException("Neither user ID/password combination nor OAuth consumer key/secret combination supplied");
      }
      String str2 = (String)localIterator.next();
      paramHttpURLConnection.addRequestProperty(str2, (String)this.n.get(str2));
      h(str2 + ": " + ((String)this.n.get(str2)));
    }
  }

  private i b(String paramString, g[] paramArrayOfg)
  {
    String str = "GET";
    g[] arrayOfg;
    int i1;
    if (paramArrayOfg != null)
    {
      str = "POST";
      arrayOfg = new g[1 + paramArrayOfg.length];
      i1 = 0;
      if (i1 >= paramArrayOfg.length)
        label24: arrayOfg[paramArrayOfg.length] = new g("source", weibo4andriod.e.a);
    }
    while (true)
    {
      return a(paramString, arrayOfg, str);
      arrayOfg[i1] = paramArrayOfg[i1];
      ++i1;
      break label24:
      arrayOfg = paramArrayOfg;
    }
  }

  private void b()
  {
    if ((this.e == null) || (this.f == null))
      return;
    StringBuilder localStringBuilder = new StringBuilder("Basic ");
    new b();
    this.b = new String(b.a(new StringBuilder(String.valueOf(this.e)).append(":").append(this.f).toString().getBytes()));
    this.o = null;
  }

  private static void c(String paramString1, String paramString2)
  {
    if (!(a))
      return;
    h(paramString1 + paramString2);
  }

  private static void h(String paramString)
  {
    if (!(a))
      return;
    System.out.println("[" + new Date() + "]" + paramString);
  }

  public final String a()
  {
    return this.r;
  }

  public final a a(h paramh, String paramString)
  {
    try
    {
      this.t = paramh;
      String str = this.s;
      g[] arrayOfg = new g[1];
      arrayOfg[0] = new g("oauth_verifier", paramString);
      this.t = new a(b(str, arrayOfg));
      return ((a)this.t);
    }
    catch (weibo4andriod.g localg)
    {
      throw new weibo4andriod.g("The user has not given access to the account.", localg, localg.a());
    }
  }

  public final h a(String paramString1, String paramString2)
  {
    this.u = paramString1;
    this.t = new h(paramString1, paramString2);
    return ((h)this.t);
  }

  public final i a(String paramString, g[] paramArrayOfg)
  {
    g[] arrayOfg = new g[1 + paramArrayOfg.length];
    for (int i1 = 0; ; ++i1)
    {
      if (i1 >= paramArrayOfg.length)
      {
        arrayOfg[paramArrayOfg.length] = new g("source", weibo4andriod.e.a);
        return b(paramString, arrayOfg);
      }
      arrayOfg[i1] = paramArrayOfg[i1];
    }
  }

  public final void a(String paramString)
  {
    this.e = paramString;
    b();
  }

  public final void b(String paramString)
  {
    this.f = paramString;
    b();
  }

  public final void b(String paramString1, String paramString2)
  {
    this.n.put(paramString1, paramString2);
  }

  public final h c(String paramString)
  {
    String str = this.p;
    g[] arrayOfg = new g[1];
    arrayOfg[0] = new g("oauth_callback", paramString);
    this.t = new h(b(str, arrayOfg), this);
    return ((h)this.t);
  }

  public final void d(String paramString)
  {
    this.p = paramString;
  }

  public final void e(String paramString)
  {
    this.q = paramString;
  }

  public final boolean equals(Object paramObject)
  {
    if (this == paramObject);
    for (int i1 = 1; ; i1 = 1)
    {
      label7: c localc;
      while (true)
      {
        return i1;
        if (!(paramObject instanceof c))
          i1 = 0;
        localc = (c)paramObject;
        if (this.k != localc.k)
          i1 = 0;
        if (this.h != localc.h)
          i1 = 0;
        if (this.l != localc.l)
          i1 = 0;
        if (this.c != localc.c)
          i1 = 0;
        if (this.d != localc.d)
          i1 = 0;
        if (this.s != null)
          if (this.s.equals(localc.s))
            break label139;
        do
        {
          i1 = 0;
          break label7:
        }
        while (localc.s != null);
        if (!(this.r.equals(localc.r)))
          label139: i1 = 0;
        if (!(this.q.equals(localc.q)))
          i1 = 0;
        if (this.b != null)
          if (this.b.equals(localc.b))
            break label210;
        do
        {
          i1 = 0;
          break label7:
        }
        while (localc.b != null);
        if (this.o != null)
          label210: if (this.o.equals(localc.o))
            break label243;
        do
        {
          i1 = 0;
          break label7:
        }
        while (localc.o != null);
        if (this.t != null)
          label243: if (this.t.equals(localc.t))
            break label276;
        do
        {
          i1 = 0;
          break label7:
        }
        while (localc.t != null);
        if (this.f != null)
          label276: if (this.f.equals(localc.f))
            break label309;
        do
        {
          i1 = 0;
          break label7:
        }
        while (localc.f != null);
        if (this.j != null)
          label309: if (this.j.equals(localc.j))
            break label342;
        do
        {
          i1 = 0;
          break label7:
        }
        while (localc.j != null);
        if (this.i != null)
          label342: if (this.i.equals(localc.i))
            break label375;
        do
        {
          i1 = 0;
          break label7:
        }
        while (localc.i != null);
        if (this.g != null)
          label375: if (this.g.equals(localc.g))
            break label408;
        do
        {
          i1 = 0;
          break label7:
        }
        while (localc.g != null);
        if (!(this.n.equals(localc.n)))
          label408: i1 = 0;
        if (this.p.equals(localc.p))
          break;
        i1 = 0;
      }
      if (this.e != null)
        if (this.e.equals(localc.e))
          continue;
      do
      {
        i1 = 0;
        break label7:
      }
      while (localc.e != null);
    }
  }

  public final void f(String paramString)
  {
    this.s = paramString;
  }

  public final i g(String paramString)
  {
    return b(paramString, null);
  }

  public final int hashCode()
  {
    int i1;
    label15: int i3;
    label51: int i5;
    label75: int i7;
    label101: int i9;
    label135: int i11;
    label161: int i13;
    label216: int i15;
    label275: int i16;
    if (this.b != null)
    {
      i1 = this.b.hashCode();
      int i2 = 31 * (31 * (i1 * 31 + this.c) + this.d);
      if (this.e == null)
        break label312;
      i3 = this.e.hashCode();
      int i4 = 31 * (i2 + i3);
      if (this.f == null)
        break label317;
      i5 = this.f.hashCode();
      int i6 = 31 * (i4 + i5);
      if (this.g == null)
        break label323;
      i7 = this.g.hashCode();
      int i8 = 31 * (31 * (i6 + i7) + this.h);
      if (this.i == null)
        break label329;
      i9 = this.i.hashCode();
      int i10 = 31 * (i8 + i9);
      if (this.j == null)
        break label335;
      i11 = this.j.hashCode();
      int i12 = 31 * (31 * (31 * (31 * (i10 + i11) + this.k) + this.l) + this.n.hashCode());
      if (this.o == null)
        break label341;
      i13 = this.o.hashCode();
      int i14 = 31 * (31 * (31 * (31 * (i12 + i13) + this.p.hashCode()) + this.q.hashCode()) + this.r.hashCode());
      if (this.s == null)
        break label347;
      i15 = this.s.hashCode();
      i16 = 31 * (i14 + i15);
      if (this.t == null)
        break label353;
    }
    for (int i17 = this.t.hashCode(); ; i17 = 0)
    {
      return (i16 + i17);
      i1 = 0;
      break label15:
      label312: i3 = 0;
      break label51:
      label317: i5 = 0;
      break label75:
      label323: i7 = 0;
      break label101:
      label329: i9 = 0;
      break label135:
      label335: i11 = 0;
      break label161:
      label341: i13 = 0;
      break label216:
      label347: i15 = 0;
      label353: break label275:
    }
  }
}

/* Location:           E:\Desktop\Android\wordstd\classes_dex2jar.jar
 * Qualified Name:     weibo4andriod.a.c
 * JD-Core Version:    0.5.3
 */